package com.example.stock.service;

import com.example.stock.entity.User;
import com.example.stock.entity.UserToken;

public interface UserService {
    /**
     * 登录
     *
     * @param loginName
     * @param passwordMD5
     * @return
     */
    String login(String loginName, String passwordMD5);

    /**
     * 登出接口
     * @param userId
     * @return
     */
    Boolean logout(Long userId);

    UserToken selectUserTokenByToken(String token);

    User selectUserByPrimaryKey(Long userId);

    Boolean isLogin();
}